package com.manage.user.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.manage.user.entity.User;
import com.manage.user.provider.UserProvider;
import com.manage.utils.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @author Fitch
 */
@Mapper
public interface UserMapper extends BaseMapper{
    /*@Select("select id,user_name as userName,password from user")
    List<User> listUser();*/
    @SelectProvider(type = UserProvider.class,method = "listUser")
    List<User> listUser(Criteria criteria);
}
